//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.dao
{
	import __AS3__.vec.Vector;
	
	import reader.model.vo.ServiceVO;
	import reader.model.vo.UserVO;
	
	public interface IServiceDAO
	{
		function insertService(service:ServiceVO, user:UserVO):int;
				
		function updateService(service:ServiceVO):Boolean;
		
		function deleteService(service:ServiceVO):Boolean;
		
		function deleteServiceByUser(user:UserVO):Boolean;
		
		function selectService(sid:int):ServiceVO;
		
		function selectAllServices(user:UserVO):Vector.<ServiceVO>;
	}
}